package org.jeecg.modules.travel.vo.attractionFile;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jeecg.modules.travel.entity.JhAttractionFile;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AttractionFileVo {

    /**
     * 类型：0-图片，1-音频，2-视频
     */
    @Schema(description = "类型：0-图片，1-音频，2-视频")
    private Integer type;

    /**
     * 地址
     */
    @Schema(description = "地址")
    private String path;

    private AttractionFileVo(JhAttractionFile file) {
        this.type = file.getType();
        this.path = file.getPath();
    }

}
